//==============================================================================
// barracks_anim.txt
//==============================================================================

import Construction_defines_anim.txt

//==============================================================================
define empower
{
   SetSelector
   {
      EmpowerLogic
      SetSelector
      {
         set hotspot
         {
            version
            {
               Visualnone Jimmy
            }
         }
      }
      SetSelector
      {
         set hotspot
         {
            version
            {
               Visualparticle SFX E Pharaoh Empower Small
            }
         }
      }
   }
}

//==============================================================================
define Dust
{
   set hotspot
   {
      version
      {
         Visualparticle SFX A Building DustA
      }
   }  
}

//==============================================================================
define ACC1
{
   set hotspot
   {
      version
      {
          Visual Building Beta N Longhouse Age1 ACC1
Replacetexture building n shared01 2 map/Building Beta N Siege Camp Age 1 V1
replacetexture Building N Shared04 2 map/Building Beta N Siege Camp Age 1 V2
Replacetexture building n shared01 2 map/Building Beta N Siege Camp Age 1 V1
Replacetexture building n templeage1/Building Beta N Temple V2 A
Replacetexture building n shared01 1 map/Building Beta N Temple V2 A
		replaceTexture building n shrine/Building Beta N Shrine V2
      }
   }
}

//==============================================================================
define ACC2
{
   set hotspot
   {
      version
      {
         Visual Building Beta N Longhouse Age1 ACC2
		replaceTexture Building N Shared01 2 map/Building Beta N Temple V2 B
		replaceTexture Building N Dock/Building Beta N Temple V2 C

      }
   }
}

//==============================================================================
define ACC3
{
   set hotspot
   {
      version
      {
          Visual Building Beta N Longhouse Age1 ACC3
Replacetexture building n shared01 2 map/Building Beta N Siege Camp Age 1 V1
replacetexture Building N Shared04 2 map/Building Beta N Siege Camp Age 1 V2
      }
   }
}

//==============================================================================
define ACC4
{
   set hotspot
   {
      version
      {
          Visual Building Beta N Longhouse Age1 ACC4
replacetexture Building N Shared04 2 map/Building Beta N Siege Camp Age 1 V2
		replaceTexture Building N Shared01 2 map/Building Beta N Temple V2 B
		replaceTexture Building N Dock/Building Beta N Temple V2 C
replacetexture Building N Shared04 2 map/Building Beta N Siege Camp Age 1 V2
Replacetexture building n shared01 2 map/Building Beta N Siege Camp Age 1 V1
      }
   }
}

==============================================================================
anim Idle
{
   SetSelector
   {
		TechLogic none/age 2/age 3/age 4
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
         Visual Building Beta N Longhouse Age1
Replacetexture Building N Shared01 2 map/Building Beta N Longhouse Age1
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
				   connect HOTSPOT ACC1 HOTSPOT
				   connect HOTSPOT ACC2 HOTSPOT
				   connect HOTSPOT ACC3 HOTSPOT
				   connect HOTSPOT ACC4 HOTSPOT
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
                                        Replacetexture building e age1/norsemod age1
                                        Replacetexture building e age2 accessories/norse mod acces1
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
                                        Replacetexture building e age1/norsemod age1
                                        Replacetexture building e age2 accessories/norse mod acces1
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
                                        Replacetexture building e age1/norsemod age1
                                        Replacetexture building e age2 accessories/norse mod acces1
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
               Visual Building N Barracks
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
					connect ATTACHPOINT empower hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
                                        Replacetexture building e age2/norsemod age2
                                        Replacetexture building e age2 accessories/norse mod acces2
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
                                        Replacetexture building e age2/norsemod age2
                                        Replacetexture building e age2 accessories/norse mod acces2
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
                                        Replacetexture building e age2/norsemod age2
                                        Replacetexture building e age2 accessories/norse mod acces2
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
               Visual Building N BarracksAge3
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
                                        Replacetexture building e age3/norsemod age3
                                        Replacetexture building e age3a accessories/storehouse age3 accessories
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
                                        Replacetexture building e age3/norsemod age3
                                        Replacetexture building e age3a accessories/storehouse age3 accessories
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
                                        Replacetexture building e age3/norsemod age3
                                        Replacetexture building e age3a accessories/storehouse age3 accessories
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
               Visual Building N BarracksAge4
				   connect RIGHTTHIGH FlagBarracks HOTSPOT
				   connect LEFTTHIGH FlagBarracks HOTSPOT
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
                                        Replacetexture building e age4/norsemod age4
                                        Replacetexture building e age4roof/storehouse age4 accessories
                                        Replacetexture building e age2 accessories/norse mod acces2
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
                                        Replacetexture building e age4/norsemod age4
                                        Replacetexture building e age4roof/storehouse age4 accessories
                                        Replacetexture building e age2 accessories/norse mod acces2
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
                                        Replacetexture building e age4/norsemod age4
                                        Replacetexture building e age4roof/storehouse age4 accessories
                                        Replacetexture building e age2 accessories/norse mod acces2
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
	}
}

//==============================================================================
anim Death
{
   SetSelector
   {
		TechLogic none/age 2/age 3/age 4
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
         Visual Building Beta N Longhouse Age1
Replacetexture Building N Shared01 2 map/Building Beta N Longhouse Age1
                        connect rightfoot MS1 hotspot
                        connect rightfoot MS2 hotspot
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
                  Visual Building N Barracks_death
replacetexture building n shared04 2 map/Building Beta N Market V1 Age3
                        connect rightfoot MS1 hotspot
                        connect rightfoot MS2 hotspot
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
					Visual Building N BarracksAge3_Death
replacetexture building n shared04 2 map/Building Beta N Market V1 Age3
                        connect rightfoot MS1 hotspot
                        connect rightfoot MS2 hotspot
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
		SetSelector
		{
			ConstructionLogic 0 33 66
			set hotspot
			{
				version
				{
			Visual Building N BarracksAge4_death
replacetexture building n shared04 2 map/Building Beta N Market V1 Age3
                        connect rightfoot MS1 hotspot
                        connect rightfoot MS2 hotspot
                                        Replacetexture building e age3/building e age4
               connect Smoke0 Dust hotspot
					connect Smoke1 Dust hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small A
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building Construction small B
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
			set hotspot
			{
				version
				{
					Visual Building G ConstructionMine
					connect ATTACHPOINT empower hotspot
					connect CHIN E_Small_Brick hotspot
					connect FACE E_Medium_Brick hotspot
					connect ATTACHPOINT E_Long_Brick hotspot
				}
			}
		}
	}
}


